home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 June / CHIP Haziran 2001.iso / prog / share / 04 / setup.exe / MM6.Cab / F2363_SlideShowAuto.action.F6A680DD_F3FB_4CF3_BABB_0D0F06E630F5 < prev    next >
Text File  |  2000-08-17  |  11KB  |  236 lines

  1. <html>
  2.  
  3.     <head>
  4.         <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
  5.         <title>Slide Show Auto action</title>
  6.         <meta name="generator" content="Adobe GoLive 5">
  7.     </head>
  8.  
  9.     <body bgcolor="white">
  10.         <center>
  11.             <font size="6">SlideShowAuto Action 1.0</font>
  12.             <p>© 1999, Adobe Systems Incorporated<br>
  13.             All rights reserved.</p>
  14.             <p>Script by Cédric Ménard</p>
  15.             <hr>
  16.         </center>
  17.         <csactionclass name="SlideShowAuto" function="CSSlideShowAuto" nsversion="3" ieversion="4">
  18.         <csactionparam name="image" type="GLActionImageParam"></csactionparam>
  19.         <csactionparam name="nombre" type="GLActionNumParam"></csactionparam>
  20.         <csactionparam name="seconde" type="GLActionNumParam"></csactionparam>
  21.         <csactionparam name="stop" type="GLActionBoolParam"></csactionparam>
  22.         </csactionclass>
  23.         <p>IE Stuff
  24.         <script language="JavaScript1.2" src="../GlobalScripts/IE.scpt"></script>
  25.         </p>
  26.         <p>CSSlideShowAuto  
  27.         <script language="JavaScript1.1" cyberversion="N1.1"><!--
  28. // Script copyright 1999, Adobe Systems Incorporated. All rights reserved.
  29.  
  30. function CSSlideShowAuto(action) 
  31. {
  32. SSAfini=0
  33. SSAnumimg=0
  34. SSAmax=action[2]
  35. SSAimgNom=action[1]
  36. SSAtemps=action[3]*1000
  37. if (action[4]==true) 
  38.         {
  39.         SSAstop=true
  40.         }
  41.     else SSAstop=false
  42. var SSAimg = null;
  43.     if (document.images) {
  44.         if (!IsIE()) SSAimg = CSFindElement(SSAimgNom,0);
  45.         else SSAimg = document.images[SSAimgNom];
  46. str=SSAimg.src
  47. n=str.length
  48. p=n-6
  49. SSApstr=str.substring(0,p)
  50. SSAnimg=str.substring(p,p+2)
  51. SSAformat=str.substring(p+2,n)
  52. if (SSAformat==".jpg" || SSAformat==".JPG" || SSAformat==".gif" || SSAformat==".GIF")
  53. {}
  54. else
  55. {
  56.  alert("Image extension must be .jpg or .gif (case sensitive). Images must use 2 digit naming starting with 01, 02 ... plus extension")
  57. }
  58. if (SSAnimg.substring(0,1)=="0") 
  59. {
  60. SSAnumimg=Number(SSAnimg.substring(1,2))
  61. }
  62. else
  63. {SSAnumimg=Number(SSAnimg)}
  64.  
  65.  
  66. SSAtempo(SSAmax,SSAimgNom,SSAtemps,SSAstop,SSApstr,SSAnimg,SSAformat)
  67. }
  68. }
  69.  
  70. function SSAtempo(SSAmax,SSAimgNom,SSAtemps,SSAstop,SSApstr,SSAnimg,SSAformat)
  71. {
  72. setTimeout("slideAuto(SSAmax,SSAimgNom,SSAstop,SSApstr,SSAnimg,SSAformat)",SSAtemps)
  73. }
  74.  
  75.  
  76. function slideAuto(SSAmax,SSAimgNom,SSAstop,SSApstr,SSAnimg,SSAformat)
  77. {
  78. if (SSAfini==1) {
  79. SSAnumimg = SSAnumimg-2
  80. CSSlideShowAutoPause()
  81. }
  82. else 
  83. {
  84. SSAmax=SSAmax-1
  85. SSAsuite=SSAnumimg+1
  86.     if (SSAnumimg>SSAmax)
  87.         {
  88.         SSAsuite=1
  89.         if (SSAstop==true) SSAfini=1
  90.         else
  91.         SSAfini=0
  92.         }
  93.     if (SSAnumimg<1) SSAsuite=1
  94. SSAnumimg=SSAsuite
  95. if (SSAsuite<10) {
  96.     SSAaller="0"+SSAsuite
  97.     }
  98.     else SSAaller=SSAsuite
  99. SSAsource=SSApstr+SSAaller+SSAformat
  100. var SSAimg = null;
  101.     if (document.images) {
  102.         if (!IsIE()) SSAimg = CSFindElement(SSAimgNom,0);
  103.         else SSAimg = document.images[SSAimgNom];
  104.         if (SSAimg) SSAimg.src = SSAsource;
  105.     }
  106. SSAtempo(SSAmax,SSAimgNom,SSAtemps,SSAstop,SSApstr,SSAnimg,SSAformat)
  107. }
  108. }
  109.  
  110. function CSSlideShowAutoPause() 
  111. {}
  112. // -->
  113.         </script>
  114.         </p>
  115.  
  116.         <table cool width="221" height="243" border="0" cellpadding="0" cellspacing="0" gridx="16" showgridx gridy="16" showgridy bgcolor="#eeeeee">
  117.             <tr height="1" cntrlrow>
  118.                 <td width="1" height="1"><spacer type="block" width="1" height="1"></td>
  119.                 <td width="4" height="1"><spacer type="block" width="4" height="1"></td>
  120.                 <td width="24" height="1"><spacer type="block" width="24" height="1"></td>
  121.                 <td width="11" height="1"><spacer type="block" width="11" height="1"></td>
  122.                 <td width="41" height="1"><spacer type="block" width="41" height="1"></td>
  123.                 <td width="60" height="1"><spacer type="block" width="60" height="1"></td>
  124.                 <td width="80" height="1"><spacer type="block" width="80" height="1"></td>
  125.             </tr>
  126.             <tr height="6">
  127.                 <td width="1" height="6"><spacer type="block" width="1" height="6"></td>
  128.                 <td width="4" height="6"><spacer type="block" width="4" height="6"></td>
  129.                 <td width="24" height="6"><spacer type="block" width="24" height="6"></td>
  130.                 <td width="11" height="6"><spacer type="block" width="11" height="6"></td>
  131.                 <td width="41" height="6"><spacer type="block" width="41" height="6"></td>
  132.                 <td width="60" height="6"><spacer type="block" width="60" height="6"></td>
  133.                 <td width="80" height="6"><spacer type="block" width="80" height="6"></td>
  134.             </tr>
  135.             <tr height="3">
  136.                 <td width="1" height="3"><spacer type="block" width="1" height="3"></td>
  137.                 <td width="4" height="3"><spacer type="block" width="4" height="3"></td>
  138.                 <td width="24" height="3"><spacer type="block" width="24" height="3"></td>
  139.                 <td width="11" height="3"><spacer type="block" width="11" height="3"></td>
  140.                 <td width="41" height="3"><spacer type="block" width="41" height="3"></td>
  141.                 <td width="140" height="22" colspan="2" rowspan="2" valign="top" align="left" xpos="80">
  142.                     <csactioncntrl name="image" x="80" y="6" width="136" height="18" alignx="scale" aligny="top">
  143.                 </td>
  144.             </tr>
  145.             <tr height="19">
  146.                 <td width="1" height="19"><spacer type="block" width="1" height="19"></td>
  147.                 <td width="4" height="19"><spacer type="block" width="4" height="19"></td>
  148.                 <td width="76" height="19" colspan="3" rowspan="1" valign="top" align="left" xpos="4">
  149.                     <csactioncntrl type="InfoText" value="Base Image" x="4" y="9" width="74" height="16" alignx="left" aligny="top">
  150.                 </td>
  151.             </tr>
  152.             <tr height="2">
  153.                 <td width="1" height="2"><spacer type="block" width="1" height="2"></td>
  154.                 <td width="4" height="2"><spacer type="block" width="4" height="2"></td>
  155.                 <td width="24" height="2"><spacer type="block" width="24" height="2"></td>
  156.                 <td width="11" height="2"><spacer type="block" width="11" height="2"></td>
  157.                 <td width="41" height="2"><spacer type="block" width="41" height="2"></td>
  158.                 <td width="60" height="22" colspan="1" rowspan="2" valign="top" align="left" xpos="80">
  159.                     <csactioncntrl name="nombre" x="80" y="28" width="52" height="17" alignx="left" aligny="top">
  160.                 </td>
  161.                 <td width="80" height="2"><spacer type="block" width="80" height="2"></td>
  162.             </tr>
  163.             <tr height="20">
  164.                 <td width="1" height="20"><spacer type="block" width="1" height="20"></td>
  165.                 <td width="4" height="20"><spacer type="block" width="4" height="20"></td>
  166.                 <td width="76" height="20" colspan="3" rowspan="1" valign="top" align="left" xpos="4">
  167.                     <csactioncntrl type="InfoText" value="# of images" x="4" y="30" width="70" height="17" alignx="left" aligny="top">
  168.                 </td>
  169.                 <td width="80" height="20"><spacer type="block" width="80" height="20"></td>
  170.             </tr>
  171.             <tr height="3">
  172.                 <td width="1" height="3"><spacer type="block" width="1" height="3"></td>
  173.                 <td width="4" height="3"><spacer type="block" width="4" height="3"></td>
  174.                 <td width="24" height="3"><spacer type="block" width="24" height="3"></td>
  175.                 <td width="11" height="3"><spacer type="block" width="11" height="3"></td>
  176.                 <td width="41" height="3"><spacer type="block" width="41" height="3"></td>
  177.                 <td width="60" height="28" colspan="1" rowspan="2" valign="top" align="left" xpos="80">
  178.                     <csactioncntrl name="seconde" x="80" y="50" width="52" height="17" alignx="left" aligny="top">
  179.                 </td>
  180.                 <td width="80" height="3"><spacer type="block" width="80" height="3"></td>
  181.             </tr>
  182.             <tr height="25">
  183.                 <td width="1" height="25"><spacer type="block" width="1" height="25"></td>
  184.                 <td width="4" height="25"><spacer type="block" width="4" height="25"></td>
  185.                 <td width="76" height="25" colspan="3" rowspan="1" valign="top" align="left" xpos="4">
  186.                     <csactioncntrl type="InfoText" value="Interval" x="4" y="53" width="71" height="18" alignx="left" aligny="top">
  187.                 </td>
  188.                 <td width="80" height="25" colspan="1" rowspan="1" valign="top" align="left" xpos="140">
  189.                     <csactioncntrl type="InfoText" value="sec." x="140" y="53" width="71" height="18" alignx="left" aligny="top">
  190.                 </td>
  191.             </tr>
  192.             <tr height="4">
  193.                 <td width="1" height="4"><spacer type="block" width="1" height="4"></td>
  194.                 <td width="4" height="4"><spacer type="block" width="4" height="4"></td>
  195.                 <td width="24" height="41" colspan="1" rowspan="3" valign="top" align="left" xpos="4">
  196.                     <csactioncntrl name="stop" x="4" y="78" width="20" height="20" alignx="left" aligny="top">
  197.                 </td>
  198.                 <td width="11" height="4"><spacer type="block" width="11" height="4"></td>
  199.                 <td width="41" height="4"><spacer type="block" width="41" height="4"></td>
  200.                 <td width="60" height="4"><spacer type="block" width="60" height="4"></td>
  201.                 <td width="80" height="4"><spacer type="block" width="80" height="4"></td>
  202.             </tr>
  203.             <tr height="15">
  204.                 <td width="1" height="15"><spacer type="block" width="1" height="15"></td>
  205.                 <td width="4" height="15"><spacer type="block" width="4" height="15"></td>
  206.                 <td width="192" height="15" colspan="4" rowspan="1" valign="top" align="left" xpos="28">
  207.                     <csactioncntrl type="InfoText" value="Stop at end of slideshow" x="28" y="82" width="166" height="15" alignx="left" aligny="top">
  208.                 </td>
  209.             </tr>
  210.             <tr height="22">
  211.                 <td width="1" height="22"><spacer type="block" width="1" height="22"></td>
  212.                 <td width="4" height="22"><spacer type="block" width="4" height="22"></td>
  213.                 <td width="11" height="22"><spacer type="block" width="11" height="22"></td>
  214.                 <td width="181" height="22" colspan="3" rowspan="1" valign="top" align="left" xpos="39">
  215.                     <csactioncntrl type="InfoText" value="(loops otherwise)" x="39" y="97" width="177" height="15" alignx="left" aligny="top">
  216.                 </td>
  217.             </tr>
  218.             <tr height="59">
  219.                 <td width="1" height="59"><spacer type="block" width="1" height="59"></td>
  220.                 <td width="4" height="59"><spacer type="block" width="4" height="59"></td>
  221.                 <td width="216" height="59" colspan="5" rowspan="1" valign="top" align="left" xpos="4">
  222.                     <csactioncntrl type="InfoText" value="Images must be numbered 01, 02, 03, etc, with a .gif or .jpg extension. All images in the slide show must be located  in the same folder as the base image." x="4" y="119" width="212" height="53" alignx="scale" aligny="top">
  223.                 </td>
  224.             </tr>
  225.             <tr height="64">
  226.                 <td width="1" height="64"><spacer type="block" width="1" height="64"></td>
  227.                 <td width="4" height="64"><spacer type="block" width="4" height="64"></td>
  228.                 <td width="216" height="64" colspan="5" rowspan="1" valign="top" align="left" xpos="4">
  229.                     <csactioncntrl type="InfoText" value="Notes: You can only apply one Slide Show Auto action per page. You cannot have both a Slide Show and Slide Show Auto action on the same page." x="4" y="178" width="212" height="53" alignx="scale" aligny="top">
  230.                 </td>
  231.             </tr>
  232.         </table>
  233.     </body>
  234.  
  235. </html>
  236.